#ifndef CRC16_H
#define CRC16_H

#ifdef __cplusplus
    extern "C" {
#endif


/*----------------------------------------------------------------------------*/
/* Included files to resolve specific definitions in this file                */
/*----------------------------------------------------------------------------*/
#include "basedef.h"

/*----------------------------------------------------------------------------*/
/* Constant data                                                              */
/*----------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------*/
/* Exported type                                                              */
/*----------------------------------------------------------------------------*/
// Define if Lookup table or calculation based Crc16 routine should be used
#define LOOKUP_CRC
/*#define CALCULATE_CRC*/

/*----------------------------------------------------------------------------*/
/* Exported data                                                              */
/*----------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------*/
/* Constant exported data                                                     */
/*----------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------*/
/* Exported Macros                                                            */
/*----------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------*/
/* Exported functions                                                         */
/*----------------------------------------------------------------------------*/
U16 IF_Crc16_Generate( U8* pBuff, U16 u16BuffSize );

#ifdef __cplusplus
    }
#endif

#endif /* CRC16_H */
